Regulus.Remoting.Value<bool> IParking.CreateActor(Serializable.EntityLookInfomation cai, Regulus.Project.SamebestKeys.Serializable.EntityPropertyInfomation.IDENTITY identity) { if (_Stroage.CheckActorName(cai.Name) == false) { Serializable.DBEntityInfomation ai = new Serializable.DBEntityInfomation(); ai.Look.Name = cai.Name; ai.Look.Shell = cai.Shell; ai.Property.Id = Guid.NewGuid(); ai.Property.Identity = identity; ai.Owner = _Id; _ActorInfomations.Add(ai); _Stroage.Add(ai); return true; } return false; }
Regulus.Remoting.Value<bool> IParking.CreateActor(Serializable.EntityLookInfomation cai) { if (_Stroage.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(); position.X = (float)Regulus.Utility.Random.Instance.R.Next(0,100); position.Y = (float)Regulus.Utility.Random.Instance.R.Next(0,100); ai.Owner = _Id; _ActorInfomations.Add(ai); _Stroage.Add(ai); return true; } return false; }
public Player(Serializable.DBEntityInfomation dB_actorInfomation) : base(dB_actorInfomation.Property, dB_actorInfomation.Look) { _DBActorInfomation = dB_actorInfomation; }