createProtos() public method

public createProtos ( ) : void
return void
コード例 #1
0
        public virtual IoObject proto(IoState state)
        {
            IoObject pro = new IoObject();

            pro.state = state;
            pro.createSlots();
            pro.createProtos();
            pro.uniqueId = 0;
            state.registerProtoWithFunc(name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto)));
            return(pro);
        }
コード例 #2
0
        public virtual IoObject clone(IoState state)
        {
            IoObject proto = state.protoWithInitFunc(name);
            IoObject o     = Activator.CreateInstance(this.GetType()) as IoObject;

            uniqueIdCounter++;
            o.uniqueId = uniqueIdCounter;
            o.state    = proto.state;
            o.createSlots();
            o.createProtos();
            o.protos.Add(proto);
            cloneSpecific(this, o);
            return(o);
        }
コード例 #3
0
ファイル: IoObject.cs プロジェクト: devaspot/io
 public virtual IoObject proto(IoState state)
 {
     IoObject pro = new IoObject();
     pro.state = state;
     pro.createSlots();
     pro.createProtos();
     pro.uniqueId = 0;
     state.registerProtoWithFunc(name, new IoStateProto(pro.name, pro, new IoStateProtoFunc(pro.proto)));
     return pro;
 }