Example #1
0
 public TrinityErrorCode GetCellType(long cellId, out ushort cellType)
 {
     using (var req = new __CellIdStructWriter(cellId))
         using (var rsp = m_mod.GetCellType(0, req))
         {
             if (rsp.code >= 0)
             {
                 cellType = (ushort)rsp.code;
                 return(TrinityErrorCode.E_SUCCESS);
             }
             else
             {
                 cellType = 0;
                 return((TrinityErrorCode)rsp.code);
             }
         }
 }