コード例 #1
0
        /// <summary>
        /// Called by CryEngine. Do not call directly.
        /// </summary>
        public static IFlowNode CreateInstance(IFlowNode.SActivationInfo info)
        {
            var internalNode = new InternalFlowNode <T>();

            internalNode._gcLock = GCHandle.Alloc(internalNode);
            internalNode.Node    = (T)Activator.CreateInstance(typeof(T), new object[] {});
            return(internalNode);
        }
コード例 #2
0
 /// <summary>
 /// Called by CryEngine. Do not call directly.
 /// </summary>
 public override IFlowNodePtr Create(IFlowNode.SActivationInfo info)
 {
     return(new IFlowNodePtr(InternalFlowNode <T> .CreateInstance(info)));
 }