Example #1
0
        Regulus.Remoting.Value<bool> IParking.CreateActor(Serializable.EntityLookInfomation cai)
        {
            if (Regulus.Utility.Singleton<Storage>.Instance.CheckActorName(cai.Name) == false)
            {
                Serializable.DBEntityInfomation ai = new Serializable.DBEntityInfomation();
                ai.Look.Name = cai.Name;

                var position = ai.Property.Position;
                ai.Property.Id = Guid.NewGuid();

                ai.Owner = _Id;
                _ActorInfomations.Add(ai);
                Regulus.Utility.Singleton<Storage>.Instance.Add(ai);
                return true;
            }
            return false;
        }
Example #2
0
 public Player(Serializable.DBEntityInfomation dB_actorInfomation)
     : base(dB_actorInfomation.Property, dB_actorInfomation.Look)
 {
     _DBActorInfomation = dB_actorInfomation;
 }