GameFramework.EntityController.GetRelation C# (CSharp) Method

GetRelation() private method

private GetRelation ( EntityInfo one, EntityInfo other ) : CharacterRelation
one EntityInfo
other EntityInfo
return CharacterRelation
        internal CharacterRelation GetRelation(EntityInfo one, EntityInfo other)
        {
            if (null == one || null == other)
                return CharacterRelation.RELATION_INVALID;
            else
                return EntityInfo.GetRelation(one, other);
        }

Same methods

EntityController::GetRelation ( UnityEngine one, UnityEngine other ) : CharacterRelation
EntityController::GetRelation ( int one, int other ) : CharacterRelation

Usage Example

示例#1
0
 static public int GetRelation(IntPtr l)
 {
     try {
         int argc = LuaDLL.lua_gettop(l);
         if (matchType(l, argc, 2, typeof(UnityEngine.GameObject), typeof(UnityEngine.GameObject)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             UnityEngine.GameObject         a1;
             checkType(l, 2, out a1);
             UnityEngine.GameObject a2;
             checkType(l, 3, out a2);
             var ret = self.GetRelation(a1, a2);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         else if (matchType(l, argc, 2, typeof(int), typeof(int)))
         {
             GameFramework.EntityController self = (GameFramework.EntityController)checkSelf(l);
             System.Int32 a1;
             checkType(l, 2, out a1);
             System.Int32 a2;
             checkType(l, 3, out a2);
             var ret = self.GetRelation(a1, a2);
             pushValue(l, true);
             pushEnum(l, (int)ret);
             return(2);
         }
         pushValue(l, false);
         LuaDLL.lua_pushstring(l, "No matched override function to call");
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }