This is the base GameRules interface. All game rules must implement this.
Inheritance: EntityBase
コード例 #1
0
ファイル: GameRules.cs プロジェクト: jbjhjm/legendsofdrakan
        internal void InternalInitialize()
        {
            Current = this;

            Id = 1;
            this.SetIEntity(NativeEntityMethods.GetEntity(Id));
        }
コード例 #2
0
ファイル: GameRules.cs プロジェクト: RogierWV/315GR
        internal override bool InternalInitialize(IScriptInitializationParams initParams)
        {
            Current = this;

            var gameRulesInitParams = (GameRulesInitializationParams)initParams;

            Id = gameRulesInitParams.id;
            this.SetIEntity(gameRulesInitParams.entityPtr);

            return base.InternalInitialize(initParams);
        }