Exemple #1
0
        public Crate(ActorInitializer init, CrateInfo info)
        {
            this.self = init.Self;
            this.info = info;

            if (init.Contains <LocationInit>())
            {
                SetPosition(self, init.Get <LocationInit, CPos>());
            }
        }
Exemple #2
0
        public Crate(ActorInitializer init, CrateInfo info)
        {
            self      = init.Self;
            this.info = info;

            var locationInit = init.GetOrDefault <LocationInit>();

            if (locationInit != null)
            {
                SetPosition(self, locationInit.Value);
            }
        }