예제 #1
0
        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;
        }
예제 #2
0
파일: Parking.cs 프로젝트: kof1016/Regulus
        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;
        }
예제 #3
0
파일: Player.cs 프로젝트: kof1016/Regulus
 public Player(Serializable.DBEntityInfomation dB_actorInfomation)
     : base(dB_actorInfomation.Property, dB_actorInfomation.Look)
 {
     _DBActorInfomation = dB_actorInfomation;
 }