Ejemplo n.º 1
0
        public static Scene CreateScene(SceneType sceneType, string name, Scene parent = null, long id = 0)
        {
            Scene scene = (Scene)Game.ObjectPool.Fetch(typeof(Scene));

            scene.Id        = id != 0 ? id : IdGenerater.GenerateId();
            scene.Name      = name;
            scene.SceneType = sceneType;
            if (parent != null)
            {
                scene.Parent = parent;
            }
            scene.Domain = scene;
            return(scene);
        }
Ejemplo n.º 2
0
 public ComponentQueue(string typeName)
 {
     this.Id       = IdGenerater.GenerateId();
     this.TypeName = typeName;
 }
Ejemplo n.º 3
0
 protected Entity()
 {
     this.InstanceId = IdGenerater.GenerateId();
 }
Ejemplo n.º 4
0
 protected AChannel(AService service, ChannelType channelType)
 {
     this.Id          = IdGenerater.GenerateId();
     this.ChannelType = channelType;
     this.Service     = service;
 }