Example #1
0
    private VMDFormat.SelfShadowList ReadSelfShadowList()
    {
        VMDFormat.SelfShadowList result = new VMDFormat.SelfShadowList();
        result.self_shadow_count = binary_reader_.ReadUInt32();
        result.self_shadow       = new VMDFormat.SelfShadowData[result.self_shadow_count];
        for (int i = 0; i < result.self_shadow_count; i++)
        {
            result.self_shadow[i] = ReadSelfShadowData();
        }

        Array.Sort(result.self_shadow, (x, y) => ((int)x.frame_no - (int)y.frame_no));
        return(result);
    }
Example #2
0
	private VMDFormat.SelfShadowList ReadSelfShadowList() {
		VMDFormat.SelfShadowList result = new VMDFormat.SelfShadowList();
		result.self_shadow_count = binary_reader_.ReadUInt32();
		result.self_shadow = new VMDFormat.SelfShadowData[result.self_shadow_count];
		for (int i = 0; i < result.self_shadow_count; i++) {
			result.self_shadow[i] = ReadSelfShadowData();
		}
		
		Array.Sort(result.self_shadow, (x,y)=>((int)x.flame_no-(int)y.flame_no));
		return result;
	}