Editor
Navigate to Calendar Editor
To create new calendar - click "Add new Calendar". Enter "Calendar ID" and "Display name" and click "Save"
The following settings will appear for editing
Enabled? - If not enabled - instance will not be visible to profiles.
Template - The option allows you to select an already configured template for the calendar
CUSTOM - A template that fully allows you to configure the calendar to your requirements
Activation
ALWAYS_AVAILABLE - Available for free to all players after activation
BY_PURCHASE - The calendar will be available to players only after purchasing the calendar
You can also set the price for the calendar
Looped? - If looped - calendar after the end will be reseted and available again for the profile.
No Penalty? - If 'No Pentalty' == true - the user will be able to pick up the reward even if he missed it in a certain period.
Display Name - display name of calendar
Icon - sprite of calendar
Description - description of calendar
Custom Data - Allows you to create a set of your own access data from code.
To create your own custom data set - create a new class and inherit from "CBSCalendarCustomData". Only fields and the following data types are supported - 'int', 'float', 'string', 'enum', 'List<string>', 'List<float>', 'List<int>'
After that you will see your class in the selection list of "Custom Data". Fill in your details
To add new calendar position click "Add new day"
Click "Reward" to add assign reward for each position
You can also assign events to be triggered when the profile is rewarded.
Finally enable calendar and click "Save"
MONTHLY_TEMPLATE - Allows you to configure rewards for each month of the year separately
Configure rewards for each month like you did before
This is how the monthly calendar looks like in the examples
WEEKLY_TEMPLATE - a template that allows you to assign rewards for each day of the week for the calendar
Configure rewards for each day of week like you did before
This is how the weekly calendar looks like in the examples
Last updated