예제 #1
0
    public UIFoodData()
        : base()
    {
        m_FreshPoint = new TDCObjectProperty<int>("FreshPoint");

        RegisterProperty(m_FreshPoint);
    }
    public TDCCreatureData()
        : base()
    {
        m_MoveSpeed = new TDCObjectProperty<float>("MoveSpeed");
        m_RotationSpeed = 5f;
        m_CurrentHP = new TDCObjectProperty<int>("CurrentHP");
        m_MaxHP = new TDCObjectProperty<int>("MaxHP");
        m_Damage = new TDCObjectProperty<int>("Damage");
        m_CurrentHeatPoint = new TDCObjectProperty<int>("CurrentHeatPoint");
        m_MaxHeatPoint = new TDCObjectProperty<int>("MaxHeatPoint");

        m_DetectRange = 0f;
        m_AttackRange = 0f;
        m_Inventory = new UIItemController[20];
        m_TypeEnemies = new List<TDCEnum.EGameType> ();
        m_TypeFoods = new List<TDCEnum.EGameType> ();
        m_CreatureType = TDCEnum.ECreatureType.None;
        m_ActiveSkill = null;
        m_PassiveSkill = null;

        RegisterProperty(m_CurrentHeatPoint);
        RegisterProperty(m_MaxHeatPoint);
        RegisterProperty(m_CurrentHP);
        RegisterProperty(m_MaxHP);
        RegisterProperty(m_Damage);
    }
예제 #3
0
    public UIItemData()
        : base()
    {
        this.m_ItemType		= TDCEnum.EItemType.None;
        this.m_Amount 		= new TDCObjectProperty<int> ("Amount");

        RegisterProperty (m_Amount);
    }
예제 #4
0
    public TDCSun(TDCBaseController ctrl, TDCBaseData data)
        : base(ctrl, data)
    {
        m_Controller = ctrl as TDCSunController;
        m_Data = data as TDCSunData;

        m_IntensityOffset = new TDCObjectProperty<float>("IntensityOffset");

        RegisterProperty(m_IntensityOffset);
    }
예제 #5
0
    public TDCPlayerData()
        : base()
    {
        m_CurrentHungerPoint = new TDCObjectProperty<int>("CurrentHungerPoint");
        m_MaxHungerPoint = new TDCObjectProperty<int>("MaxHungerPoint");
        m_CurrentSanityPoint = new TDCObjectProperty<int>("CurrentSanityPoint");
        m_MaxSanityPoint = new TDCObjectProperty<int>("MaxSanityPoint");
        m_Level = new TDCObjectProperty<int> ("Level");

        RegisterProperty(m_CurrentHungerPoint);
        RegisterProperty(m_MaxHungerPoint);
        RegisterProperty(m_CurrentSanityPoint);
        RegisterProperty(m_MaxSanityPoint);
        RegisterProperty (m_Level);
    }
예제 #6
0
    public TDCEntity(TDCBaseController ctrl, TDCBaseData data)
    {
        m_TriggerEvents = new Dictionary<string, Action>();
        LoadEventCallBack();

        m_OffsetSpeed = new TDCObjectProperty<float>("OffsetSpeed", 1f);
        m_HealthPoint = new TDCObjectProperty<int>("HealthPoint");
        m_HeatPoint = new TDCObjectProperty<int>("HeatPoint");
        m_SanityPoint = new TDCObjectProperty<int>("SanityPoint");
        m_HungerPoint = new TDCObjectProperty<int>("HungerPoint");

        RegisterProperty(m_OffsetSpeed);
        RegisterProperty(m_HealthPoint);
        RegisterProperty(m_HeatPoint);
        RegisterProperty(m_SanityPoint);
        RegisterProperty(m_HungerPoint);
    }